package com.ag.bean;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import org.hibernate.annotations.GenericGenerator;

/**
 * TbEventCleanupAttach entity.
 * 
 * @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "TB_EVENT_CLEANUP_ATTACH", schema = "dbo", catalog = "AGDB")
public class TbEventCleanupAttach implements java.io.Serializable {

	// Fields

	private String ecaId;
	private TbEventCleanup tbEventCleanup;
	private String taName;
	private String taAddress;
	private String a;
	private String b;
	private String c;

	// Constructors

	/** default constructor */
	public TbEventCleanupAttach() {
	}

	/** minimal constructor */
	public TbEventCleanupAttach(String taName, String taAddress) {
		this.taName = taName;
		this.taAddress = taAddress;
	}

	/** full constructor */
	public TbEventCleanupAttach(TbEventCleanup tbEventCleanup, String taName,
			String taAddress, String a, String b, String c) {
		this.tbEventCleanup = tbEventCleanup;
		this.taName = taName;
		this.taAddress = taAddress;
		this.a = a;
		this.b = b;
		this.c = c;
	}

	// Property accessors
	@GenericGenerator(name = "generator", strategy = "uuid.hex")
	@Id
	@GeneratedValue(generator = "generator")
	@Column(name = "ECA_ID", unique = true, nullable = false, length = 32)
	public String getEcaId() {
		return this.ecaId;
	}

	public void setEcaId(String ecaId) {
		this.ecaId = ecaId;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "EC_ID")
	public TbEventCleanup getTbEventCleanup() {
		return this.tbEventCleanup;
	}

	public void setTbEventCleanup(TbEventCleanup tbEventCleanup) {
		this.tbEventCleanup = tbEventCleanup;
	}

	@Column(name = "TA_NAME", nullable = false, length = 100)
	public String getTaName() {
		return this.taName;
	}

	public void setTaName(String taName) {
		this.taName = taName;
	}

	@Column(name = "TA_ADDRESS", nullable = false, length = 256)
	public String getTaAddress() {
		return this.taAddress;
	}

	public void setTaAddress(String taAddress) {
		this.taAddress = taAddress;
	}

	@Column(name = "A", length = 60)
	public String getA() {
		return this.a;
	}

	public void setA(String a) {
		this.a = a;
	}

	@Column(name = "B", length = 60)
	public String getB() {
		return this.b;
	}

	public void setB(String b) {
		this.b = b;
	}

	@Column(name = "C", length = 60)
	public String getC() {
		return this.c;
	}

	public void setC(String c) {
		this.c = c;
	}

}